import { extend } from 'vee-validate'
import { required, email, min, length, is, max } from 'vee-validate/dist/rules'

extend('required', {
  ...required,
  message: '请输入{_field_}'
})

extend('is', {
  ...is,
  message: '两次密码不一致'
})

extend('email', {
  ...email,
  message: '请输入正确的邮箱格式'
})

extend('min', {
  ...min,
  message: '{_field_}不符合最小长度'
})

extend('max', {
  ...max,
  message: '{_field_}不符合最大长度'
})

extend('length', {
  ...length,
  message: '{_field_}需要{length}位'
})
